package luke.audio.analyzer;

import java.util.ArrayList;
import java.util.List;

/**
 * 对齐鼓点结果类
 * 包含对齐后的鼓点列表和对应的BPM值
 */
public class AlignedBeatResult {
    private final List<Integer> beats;
    private final double bpm;
    private final int matchCount;

    public AlignedBeatResult(List<Integer> beats, double bpm, int matchCount) {
        this.beats = new ArrayList<>(beats);
        this.bpm = bpm;
        this.matchCount = matchCount;
    }

    public List<Integer> getBeats() {
        return new ArrayList<>(beats);
    }

    public double getBpm() {
        return bpm;
    }

    public int getMatchCount() {
        return matchCount;
    }
}